package com.sline.OtherClass;

import java.util.Date;

public class Demo4_Date {
    public static void main(String[] args) {
        Date d1 = new Date();
        System.out.println(d1);

        Date d2 = new Date(0);
        System.out.println(d2);

        System.out.println(d1.getTime());
        System.out.println(System.currentTimeMillis());

        d1.setTime(1000);
        System.out.println(d1);
    }
}
